<?php
session_start();

if (isset($_POST['logout'])) {
	$response = array("response" => "1", "msg" => "You are logging out. Bye!");
	echo json_encode($response);
	session_destroy();
	exit();
}